﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Windows.Forms;

namespace ASmile.Setter
{
    static class Program
    {
        static string MutexName = "{6DFA51BF-2BBF-4967-ABFE-CAAA8A43DF81}";

        static Mutex mutex;

        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            mutex = new Mutex(true, MutexName);
            if (!mutex.WaitOne(TimeSpan.Zero, true))
            {
                MessageBox.Show("只能运行一个软件,请检查是否在任务栏隐藏!");
                return;
            }
            LogHelper.LogObj.Info("Setter Run");

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Startup.Run();
        }
    }
}
